<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

<h:head>
	<title>Cadastro Fornecedor</title>
</h:head>
<h:body>
	<h:form>
		<h:outputText value="Cadastro de Fornecedor"/>
		<br/><br/>
		<h:outputLabel value="Código: " style="font-weight:bold" />
		<h:inputText value="#{fornecedorBean.fornecedor.codigo}" style="width: 67px; "/>
		<br/>
		<h:outputLabel value="Nome: " style="font-weight:bold" />
		<h:inputText value="#{fornecedorBean.fornecedor.nome}" style="width: 272px; "/>
		
		<br/><br/>
		
		<br/><br/>
		<h:dataTable border="1" value="#{fornecedorBean.fornecedores}" var="fornec">
			<h:column>
				<f:facet name="header">
					<h:outputText value="Código"/>
				</f:facet>
				<h:outputText value="#{fornec.codigo}"/>
			</h:column>
			<h:column>
				<f:facet name="header">
					<h:outputText value="Nome"/>
				</f:facet>
				<h:outputText value="#{fornec.nome}"/>
			</h:column>
		</h:dataTable>

	</h:form>
</h:body>
</html>